<template>
	<view class="container">
		<web-view :src="computedUrl" @message="handeleNavite"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				baseUrl: 'https://transport.gluz.com.cn',
				path: '/#/',
				lang: uni.getStorageSync('lang'), // 示例语言参数 
				user_id:uni.getStorageSync('user_id'), // 示例用户ID
				token: uni.getStorageSync('xzdToken') // 示例token
			}
		},
		onLoad() {
			
		},
		computed: {

			computedUrl() {
				return `${this.baseUrl}${this.path}?lang=${this.lang}&user_id=${this.user_id}&token=${this.token}`;
			}
		},
		methods:{
			handeleNavite(event){
				console.log('Back');
				console.log(event.detail.data[0].event == 'Back');
				if(event.detail.data[0].event == 'Back'){
					uni.navigateBack()
				}else{
					
				}
			}
		}
	}
</script>

<style scoped>
.container {
  height: 100%;
}
</style>